\documentclass[twoside,a4paper,11pt]{scrreprt}
%-------------------------------------
% packages
%-------------------------------------
%\usepackage[english]{babel}
\usepackage[norsk]{babel}
\usepackage[utf8]{inputenc}
%\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}	% graphics handling
\usepackage{eso-pic} % for setting coverpage background
\usepackage{mathpazo}
\usepackage{varioref}
\usepackage{fancyhdr}
\usepackage{listings}	% listing source code
\usepackage{color}	% include colors
\usepackage{verbatim}	% including verbatim text
\usepackage{a4wide}	% a4 page with smaller margins
\usepackage{caption}	% adds options for captions
\usepackage{tikz}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{units}	% typesetting units
\usepackage{bm}		% bold text in math mode
\usepackage{longtable}	% allow tables spanning more than one page
\usepackage{array}	% array package
\usepackage{colortbl}	% adds color to latex tables
\usepackage{multirow}	% multirows in arrays
\usepackage[round]{natbib}
\usepackage{psfrag}
\usepackage{mdwlist}
\usepackage{url}	% url formatting
\usepackage{ulem}
\usepackage{appendix}	% appendix package
\usepackage{hyperref}	% include hyperrefs for urls

%-------------------------------------
% Background title page
%--------------------------------------
%% Define background image
\newcommand\BackgroundPic{
\put(0,0){
\parbox[b][\paperheight]{\paperwidth}{
\vfill
\centering
\includegraphics[width=\paperwidth,height=\paperheight, ]{form2_spira}
\vfill
}}}
%
%-------------------------------------
% headers and footers
%--------------------------------------
%
%
%% Want to put the page number in a colored box:
%% Define a new length and set it to the length of '999'
\newlength\pagenumwidth
\settowidth{\pagenumwidth}{999}
%
%% Define a color for the box
\definecolor{uib}{HTML}{D95900}
%
%% Define style of page number color box
\tikzset{pagefooter/.style={
anchor=base,font=\sffamily\bfseries\small,
text=white,fill=uib,text centered,
text depth=0.8cm,text width=\pagenumwidth}}
%
%%%%%%%%%%
%%% Re-define running headers on non-chapter pages
%%%%%%%%%%
\pagestyle{fancy}
  \fancyhf{}   % Clear all headers and footers first
  %% Right footers on odd pages and left footers on even pages,
  %% display the page number in a colour box
 \fancyfoot[RO,LE]{\tikz[baseline]\node[pagefooter]{\thepage};}
 \fancyfoot[LO,RE]{Introductory seminar to the Master degree}
 %% Set header (mirror even and odd pages)
 %\fancyhead[RO,LE]{Text outer}
 %\fancyhead[LO,RE]{Text inner}

 \renewcommand{\headrulewidth}{0pt}
 \renewcommand{\footrulewidth}{0pt}

%%%%%%%%%%
%%% Re-define running headers on chapter pages
%%%%%%%%%%
\fancypagestyle{plain}{%
  %% Clear all headers and footers
  \fancyhf{}
  %% Right footers on odd pages and left footers on even pages,
  %% display the page number in a colour box
  \fancyfoot[RO,LE]{\tikz[baseline]\node[pagefooter]{\thepage};}
  \fancyfoot[LO,RE]{Introductory seminar to the Master degree}

  \renewcommand{\headrulewidth}{0pt}
  \renewcommand{\footrulewidth}{0pt}
}


%-------------------------------------
% new commands
%-------------------------------------
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
%-------------------------------------
% formatting
%-------------------------------------
\hyphenpenalty=5000 % increase latex's penalty for splitting words
\tolerance=1000 % increase latex's tolerance for spacing
%-------------------------------------
% paths
%-------------------------------------
\graphicspath{{figs/}}
%-------------------------------------
% Title page
%-------------------------------------
\AddToShipoutPicture*{\BackgroundPic}
\title{Preparing a Master thesis \\
Seminar}
\author{Lene S{\ae}len}
\date{September 2011}
%-------------------------------------
% Beginning of document
%-------------------------------------
\begin{document}

% Create the title page
%\input{title.tex}

\maketitle
%\abstract%% {
%{\Large Abstract} \\

%-------------------------------------
% TOC
%-------------------------------------
\tableofcontents
%-------------------------------------
% Chapter 1
%-------------------------------------
%\include{chapter1}
%-------------------------------------
%-------------------------------------
% Introduction
%-------------------------------------
\include{Introduction}
%-------------------------------------
% Writing
%-------------------------------------
\include{Writing}
%-------------------------------------
%-------------------------------------
% Generelt
%-------------------------------------
\include{Generelt}
%-------------------------------------
%-------------------------------------
% LaTex
%-------------------------------------
\include{LaTex}
%-------------------------------------
%--------APPENDICES----------------
\appendix 

%\include{Appendix_vim}
\include{Appendix_numbers_and_statistics}
\include{Appendix_transitional_words_and_phrases}

%-------------------------------------
% References 
%-------------------------------------
\bibliographystyle{plainnat}
\bibliography{referanser}
%
%
\end{document}
